﻿<%@ Page Title="退货单详情" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="RetrunGoodsOderdetail.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.SalesReturn.RetrunGoodsOderdetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="ReturnGoodsOderListUnSubmit.aspx">未提交</a></li>
            <li><a href="ReturnGoodsOderList.aspx">已提交</a></li>
            <li><a href="ReturnGoodsOderListEmpty.aspx">空单</a></li>
            <li class="active"><a href="javascript:void(0);">退货单详情</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">退货单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtReturnName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">确认状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlstatud" runat="server">
                                    <asp:ListItem Text="全部" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="已确认" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="拒绝" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwReturngoods" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="ReturnSerialDetailID" EmptyDataText="该医疗机构暂无可采购的产品！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="ReturnCount" HeaderText="已退货总量" />
            <asp:BoundField DataField="Stock" HeaderText="当前库存" />
            <%--<asp:BoundField DataField="RetrunPrice" HeaderText="退货价格" />--%>
            <asp:TemplateField HeaderText="退货价格">
                <ItemTemplate>
                    <asp:Label ID="lblRetrunPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("RetrunPrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:BoundField DataField="orginalprice" HeaderText="采购价格"  DataFormatString="{0:N4}"/>--%>
            <asp:TemplateField HeaderText="采购价格">
                <ItemTemplate>
                    <asp:Label ID="lblorginalprice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("orginalprice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <%--<asp:BoundField DataField="Factor" HeaderText="转换系数" />--%>
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName" HeaderText="配送企业" />
            <asp:BoundField DataField="ReturnStatedc" HeaderText="确认状态" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> </span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnExport" runat="server" Text="导出Excel" ToolTip="导出Excel"
            CssClass="btn" OnClick="btnExport_Click" />
    </div>
</asp:Content>
